home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Plus
/
Graphics Plus.iso
/
general
/
fractal
/
kaos.lha
/
complib
/
ivector.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1990-01-26
|
234 b
|
13 lines
/*
### allocate memory for an integer vector ###
*/
int *ivector(nl,nh)
int nl,nh;
{
int *v;
v = (int *)malloc((unsigned) (nh - nl + 1) * sizeof(int));
if (!v) system_mess_proc(1,"ivector: allocation failure");
return(v - nl);
}